package com.lyq.pojo;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.Version;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author lyq
 * @since 2020-05-08
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Admin implements Serializable {

private static final long serialVersionUID=1L;

    private String adminName;

    private String adminPassword;

    @Version
    private Integer version;

    /**
     * 创建时间1
     */
    @TableField(fill = FieldFill.INSERT)
    private Date gmtCreate;

    /**
     * 修改时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date gmtModified;

    @TableLogic
    private Integer deleted;

    /**
     * 主键id
     */
    @TableId(value = "admin_id", type = IdType.AUTO)
    private Integer adminId;


}
